package Practices;

public class Transfrom_Char_String_Int {
    public static void main(String[] args) {
        String num1 = "1234";
        String num2 = "5678";
        char[] A = num1.toCharArray();
        char[] B = num2.toCharArray();
        int jointA = 0, jointB = 0;
        for (int i = 0; i < A.length; i++) {
            char cr = A[i];
            int getNum = cr - 48;              //char --> int
            jointA = jointA * 10 + getNum;
        }
        for (int i = 0; i < B.length; i++) {
            char cr = B[i];
            int getNum = cr - 48;
            jointB = jointB * 10 + getNum;
        }
        int count = jointA * jointB;
        String result = count + " ";             //int --> String
        System.out.println(result);
    }
}
